package 补充.多线程;

public class 使用匿名匿名内部类 {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println("玩游戏"+i);
                Thread th1 = new Thread(new Runnable() {
                    @Override
                    public void run() {
                        for (int i = 0; i < 10; i++) {
                            System.out.println("播放音乐"+i);
                        }
                    }
                });
                th1.start();

        }
    }
}
